package utils;

import java.util.Date;

public final class DateTest {

	
	private DateTest() {}
	
	
	@SuppressWarnings("deprecation")
	public static final boolean testDate(Date dateToTest) {
		Date temp = (Date) dateToTest.clone();
		Date nowDate = new Date(System.currentTimeMillis());
		int h = temp.getHours();
		h--;
		temp.setHours(h);
		
		return nowDate.after(temp);
	}
	
}
